home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global nTempo, lsSeries, lnMaxSeries, NumCd, nCursor1, nMask1
- set NumCd to 2
- set nTempo to 180
- set lsSeries to ["chica diesel", "blacknight", "motard", "sporte", "channel", "batgirl"]
- set lnMaxSeries to [20, 19, 15, 18, 21, 16]
- set nCursor1 to the number of member "Cursor1"
- set nMask1 to the number of member "Mask1"
- end
-
- on showFoto
- global sSerie, nSerie, nOrden, nMaxSerie, nPos
- set the locH of sprite 9 to 177 + ((nPos - 1) * 31)
- set the locV of sprite 9 to 39 + ((nSerie - 1) * 58)
- updateStage()
- set sMiembro to nOrden & "p"
- set the member of sprite 30 to member sMiembro of castLib sSerie
- puppetTransition(member 3 of castLib "Transiciones")
- updateStage()
- end
-
- on snapshot v1, h1, v2, h2
- global sPathIni, sMensaje01
- if azReadDir(sPathIni & "snapshot\*.*") = [] then
- if not azCreatDir(sPathIni & "snapshot") then
- alert("Unable to create directory")
- end if
- end if
- openXLib(sPathIni & "Capture.dll")
- openXLib(sPathIni & "Fileio.dll")
- set oGrab to Capture(mnew, v1 + the stageTop, h1 + the stageLeft, v2 + the stageTop, h2 + the stageLeft)
- set bLleno to 0
- repeat with xx = 0 to 100
- if xx = 100 then
- set bLleno to 1
- end if
- set sOrden to string(xx)
- if xx < 10 then
- set sOrden to "0" & sOrden
- end if
- set sFitxer to sPathIni & "snapshot\vtm_fp" & sOrden & ".BMP"
- set oFitxer to fileio(mnew, "read", sFitxer)
- if objectp(oFitxer) then
- oFitxer(mdispose)
- next repeat
- end if
- if oFitxer = -43 then
- set xx to 101
- end if
- end repeat
- closeXLib(sPathIni & "Fileio.dll")
- if bLleno then
- alert(sMensaje01)
- else
- oGrab(mSave, sFitxer)
- end if
- oGrab(mdispose)
- closeXLib(sPathIni & "Capture.dll")
- end
-
- on visible
- repeat with xx = 1 to 28
- set the visible of sprite xx to 1
- end repeat
- end
-
- on mirapuppets
- repeat with xx = 1 to 48
- if the puppet of sprite xx then
- put xx
- end if
- end repeat
- put "ok."
- end
-